import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'vant/lib/index.css';
// 引入组件
import { Form, Field, Button, Search,Icon, Swipe, SwipeItem, Lazyload   } from 'vant';
import { Image as VanImage } from 'vant';

import BaiduMap from 'vue-baidu-map'

// 计算视口
import './utils/rem.js'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: '3XNRuwxmCxFNayTpbNCXCotrNqY05gk3'
})


Vue.config.productionTip = false

// 注册组件
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(Search)
Vue.use(Icon)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Lazyload)
Vue.use(VanImage);




new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
